package com.ganee.agora.api

import com.ganee.agora.model.LoginEntity
import com.ganee.baselib.httprequest.base.BaseResponse
import io.reactivex.Observable
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.POST

/**
 *    @author : EricCui
 *    date   : 2019-12-28 15:32
 *    desc   :
 */

interface LoginApiService {
    @POST("dukang-user/login")
    fun postLogin(
            @Body requestBody: RequestBody
    ): Observable<BaseResponse<LoginEntity>>

    //登录
    @POST("agora/API/doLogin")
    fun login(
            @Body requestBody: RequestBody
    ): Observable<BaseResponse<String>>

    //注册
    @POST("agora/API/doRegister")
    fun postRegister(
            @Body requestBody: RequestBody
    ): Observable<BaseResponse<Any>>
}